package face.pay.api.withdraw.controller;


import face.pay.api.withdraw.service.IWithdrawCallbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("/WithdrawCallback")
public class WithdrawCallbackController {


    @Autowired
    private IWithdrawCallbackService iWithdrawCallbackService;

    @RequestMapping("/order")
    @ResponseBody
    public String withdrawCallback(@RequestParam Map map){

        return this.iWithdrawCallbackService.withdrawCallback(map);
    }


    @RequestMapping("/callback")
    @ResponseBody
    public Map<String, Object> allback(@RequestParam Map mapp){
        HashMap<String, Object> map = new HashMap<>();
        map.put("status","SUCCESS");

        return map;
    }
}
